﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MuseumOwner.master" AutoEventWireup="true"
    CodeFile="CityDetails.aspx.cs" Inherits="CityDetails" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">

<script language="javascript" type="text/javascript">
    function Validate() {
        if (document.getElementById("<%=txtCityName.ClientID%>").value == "") {
            alert("City Name can not be blank.");
            document.getElementById("<%=txtCityName.ClientID%>").focus();
            return false;
        }
        return true;
    }
    </script>
    <table width="100%" cellspacing="3" cellpadding="1" border="0">
        <tr>
            <td colspan="3" align="center">
                <b style="font-size: x-large;">City Details</b>
            </td>
        </tr>
        <tr>
            <td>
                <asp:Label ID="lblCountryName" Text="Country" runat="server"></asp:Label>
            </td>
            <td>
                :
            </td>
            <td>
                <asp:DropDownList ID="ddlCountry" runat="server" Width="200px" DataTextField="CountryName" DataValueField="CountryId"></asp:DropDownList>
            </td>
        </tr>
        <tr>
            <td>
                <asp:Label ID="lblCityName" Text="City Name" runat="server"></asp:Label>
            </td>
            <td>
                :
            </td>
            <td>
                <asp:TextBox ID="txtCityName" runat="server" MaxLength="100" Width="200px"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td>
                &nbsp;
            </td>
            <td>
                 &nbsp;
            </td>
            <td>
                <asp:Button ID="btnSubmit" Text="Submit" runat="server" OnClick="btnSubmit_Click" OnClientClick="return Validate();" />&nbsp;&nbsp;
                <asp:Button ID="btnReset" Text="Reset" runat="server" OnClick="btnReset_Click" />
            </td>
        </tr>
        <tr>
            <td colspan="3">
                <asp:Label ID="lblMessage" runat="server" ForeColor="Red" Visible="true"></asp:Label>
            </td>
        </tr>
    </table>
</asp:Content>
